﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccess;

namespace BussinesLogic
{
    class Indice
    {
        private string _codIndice;

        public string CodIndice
        {
            get { return _codIndice; }
            set { _codIndice = value; }
        }
        /***********************************/
        private int _numLinea;

        public int NumLinea
        {
            get { return _numLinea; }
            set { _numLinea = value; }
        }
        /***********************************/
        private string _referencia;

        public string Referencia
        {
            get { return _referencia; }
            set { _referencia = value; }
        }
        /***********************************/
        private string _noExpediente;

        public string NoExpediente
        {
            get { return _noExpediente; }
            set { _noExpediente = value; }
        }
        /***********************************/

        public Indice()
        {
            this._noExpediente = "";
            this._codIndice = "";
            this._numLinea = 0;
            this._referencia = "";            
        }

        public static Indice getIndice(string CodIndice, string NoExpediente)
        {
            DataAccess.Factory.IndiceFactoryDao tmpFac = new DataAccess.Factory.IndiceFactoryDao();

            return tmpFac.getIndice(CodIndice, NoExpediente);
        }
    }
}
